<?php

include_once("../model/Model.php");
$comments = $_POST['comments'];
$album = $_POST['album'];
$privacy = $_POST['privacy'];
$category = $_POST['category'];
$title = $_FILES['docfile']['name'];
$new_suggest=$_POST['new_suggest'];

$model = new Model();
$ans = $model->docUpload(urlencode($comments),urlencode($title),$album,$privacy,$category,$new_suggest);

echo  "<script>parent.$.fancybox.close();</script>";

?>
